package ooday01.homework;

public class Car {
    String brand;
    String color;
    double price;
    int capacity;

    public Car() {
    }

    public Car(String brand, String color, double price, int capacity) {
        this.brand = brand;
        this.color = color;
        this.price = price;
        this.capacity = capacity;
    }

    void start() {
        System.out.println(color + "色的" + brand + "牌,价值" + price + "元的" + capacity + "座车启动了...");
    }

    void run() {
        System.out.println(color + "色的" + brand + "牌,价值" + price + "元的" + capacity + "座车飙车了...");
    }

    void stop() {
        System.out.println(color + "色的" + brand + "牌,价值" + price + "元的" + capacity + "座车停下来了...");
    }


}
